package com.tiany.java_study;

public class CustomerTest {
    public static void main(String[] args) {
        Customer customer = new Customer();
        customer.name = "Tom";
        customer.id = 1001;
        customer.money = 999;

        customer.buy("apple");
        customer.money();
    }
}

class Customer {
    String name;
    int id;
    double money;

    public void buy(String things) {
        System.out.println(name + " buy " + things);
    }

    public void money() {
        System.out.println(name + "'s money is " + money);
    }
}
